package com.authsphere.security.authenticator.sms.configuration;

import com.authsphere.security.authenticator.api.Authenticator;
import com.authsphere.security.authenticator.sms.SmsAuthenticator;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: AuthSphere
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/26 16:37
 **/
@Configuration
public class SmsAuthenticatorConfiguration {

    @Bean
    @ConditionalOnMissingBean(Authenticator.class)
    public Authenticator smsAuthenticator() {
        return new SmsAuthenticator();
    }
}
